<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>

	<body>
		<script type="text/javascript">
			var sum = 1;
			for(var i = 30000; i >= 100; i *= 0.9) {
				sum++;	
			}
			console.log("在第" + sum + "次之后钱会少于100");
		</script>
	</body>

</html>